let baseUrl="http://shop.bufantec.com/bufan"
function request(params){
	uni.showLoading({
		title:"加载中"
	})
	return new Promise((resolve,reject)=>{
		uni.request({
			...params,
			url:baseUrl+params.url,
			success(res){
				resolve(res)
					
			},
			fail(err){
				reject(err)
			},
			complete(){
				uni.hideLoading()
			}
			
		})
	})
	
}
export default request